package com.fac.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@ApiModel(description = "维修工单进度更新请求参数")
public class RepairOrderProgressDTO implements Serializable {

    @NotBlank(message = "维修方案不能为空")
    @ApiModelProperty(value = "维修方案", example = "更换启动器", required = true)
    private String repairSolution;

    @NotBlank(message = "维修材料不能为空")
    @ApiModelProperty(value = "维修材料", example = "启动器*1，螺丝*4", required = true)
    private String repairMaterials;

    @NotNull(message = "维修费用不能为空")
    @ApiModelProperty(value = "维修费用", example = "500.00", required = true)
    private BigDecimal repairFee;

    @NotNull(message = "状态不能为空")
    @ApiModelProperty(value = "状态：2已完成", example = "2", required = true)
    private Integer status;

    @NotNull(message = "质检结果不能为空")
    @ApiModelProperty(value = "质检结果：1合格", example = "1", required = true)
    private Integer qualityCheckResult;
} 